package com.white.loggerserver.logpop;

import java.util.Objects;

/**
 * Created by ytf on 2019/07/23.
 * Description:
 */
public class LogBean
{
    public int type;
    public String content;
    public long time;
    public int fontSize;
    public int bgColor;
    public int fontColor;

    public LogBean() {
    }

    public LogBean(int type, String content, long time, int fontSize, int bgColor, int fontColor) {
        this.type = type;
        this.content = content;
        this.time = time;
        this.fontSize = fontSize;
        this.bgColor = bgColor;
        this.fontColor = fontColor;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        LogBean logBean = (LogBean) o;
        return type == logBean.type &&
                time == logBean.time &&
                Objects.equals(content, logBean.content);
    }

    @Override
    public int hashCode() {
        return Objects.hash(type, content, time);
    }
}
